package zhieasy.cn.model.book_market;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@TableName("book_comment_root")
@NoArgsConstructor
public class BookCommentRoot {

    @TableId
    @ApiModelProperty("评论id")
    private int id;

    @ApiModelProperty("回复类型")
    private long type;

    @ApiModelProperty("父评论评论Id")
    private String ownerId;

    @ApiModelProperty("发送该评论的人的openid")
    private String fromId;

    @ApiModelProperty("评论者的名称")
    private String fromName;

    @ApiModelProperty("评论者头像")
    private String fromAvatar;

    @ApiModelProperty("评论的点赞数")
    private long likeNum;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("创建时间")
    private long createTime;

    @ApiModelProperty("修改时间")
    private long updateTime;

    @ApiModelProperty("是否被删除")
    private long valid;

    @TableField(exist = false,select = false)
    @ApiModelProperty("该评论中的子评论")
    private transient List<BookCommentRely> bookCommentRelies;
}
